<template>
	<view>
		<u-cell-group>
			<u-cell v-for="item in receivelist" :title="'客户名称: ' + item.business.nickname"
				:value="'申请状态:' + item.status_text" :label="'申请时间: '+ item.applytime"></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				LoginUser: {},
				receivelist: []
			}
		},
		onShow() {
			this.$u.auth.check()
			this.LoginUser = uni.getStorageSync('LoginUser') ? uni.getStorageSync('LoginUser') : {};
			this.getReceiveData()
		},
		methods: {
			async getReceiveData() {
				let result = await this.$u.api.index.receivelist({
					adminid: this.LoginUser.id ?? 1
				})
				if (result.code == 1) {
					this.receivelist = result.data
				}
			},
		}
	}
</script>

<style>
</style>